# @Version : 1.0
# @Author  : wxz
# @File    : base_sql_model.py
# @Time    : 2025/6/22 17:26
# @Describe: 描述...
from datetime import datetime

from sqlmodel import SQLModel, Field


class BaseSQLModel(SQLModel):

    id: str = Field(primary_key=True, description="主键ID", max_length=64)

    create_time: datetime = Field(description="创建时间", default_factory=datetime.now)

    update_time: datetime = Field(description="修改时间", default_factory=datetime.now)

    is_delete: int = Field(description="是否删除:0-未删除，1-已删除", max_length=1, default=0)